package com.pipi.sso.dao.manager;

import com.pipi.sso.dao.model.RoleDO;
import com.pipi.sso.dao.query.RoleQuery;
import com.pipi.sso.dao.support.PageResult;

import java.util.List;


/**
 * Manager for Role.
 */
public interface RoleManager {
    /**
     * query count by query condition.
     */
    int countByQuery(RoleQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(RoleQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(RoleDO record);

    /**
     * insert selective.
     */
    long insertSelective(RoleDO record);

    /**
     * select by query condition.
     */
    List<RoleDO> selectByQuery(RoleQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<RoleDO> selectByQueryWithPage(RoleQuery query);

    /**
     * select by primary key.
     */
    RoleDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( RoleDO record,  RoleQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(RoleDO record, RoleQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(RoleDO record);
}